package com.mooc.mymooc.utils;

import java.util.Random;

public class test {
    public static void main(String[] args) {
        String words = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
        Random random = new Random();
        int[] nums = new int[16];
        StringBuilder sb = new StringBuilder();
        for (int i=0;i<16;i++){
            int rand = (int)(Math.random()*60);
            nums[i] = rand;
        }
        for (int i=0;i<16;i++){
            char ch = words.charAt(nums[i]);
            sb.append(ch);
        }
        System.out.println(sb);
    }
}
